package lab02.test26;

import java.util.Scanner;

/**
 * Created by dell on 2017/11/21.
 */
public class Test26 {
    public static void main(String[] args) {
        int a=0;
        int b=0;
        Scanner scanner=new Scanner(System.in);

        System.out.println("请输入第一个数：");
        a=scanner.nextInt();
        System.out.println("请输入第二个数：");
        b=scanner.nextInt();

        int c=0;
        try{
            c=a/b;
        }catch(ArithmeticException e){
            System.out.println("除数为0！");
        }finally {
            System.out.println("最后都会执行！！");
        }

        System.out.println(a+"/"+b+"="+c);


    }
}
